package com.yystar.support.filter;


/**
 * 缓存数据 Model
 * @author liuzhifei
 *
 */
public class CacheResponseData {
    
    private byte[] _content;
    private long _lastModified;
    private String _contentType;
    
    public CacheResponseData() {
        this(null);
    }
    
    public CacheResponseData(byte[] data) {
        this(data, System.currentTimeMillis());
    }
    
    public CacheResponseData(byte[] data,long lastModified) {
        _content = data;
        _lastModified = lastModified;
    }
    
    public long getLastModified() {
        return _lastModified;
    }
    
    public void setLastModified(long lastModified) {
        this._lastModified = lastModified;
    }
    
    public byte[] getContent() {
        return _content;
    }
    
    public void setContent(byte[] content) {
        this._content = content;
    }
    
    public void setContentType(String contentType) {
        this._contentType = contentType;
    }
    
    public String getContentType() {
        return _contentType;
    }
}
